Returns or sets the round trip time of the previous round trip time computation. If value is [[nil]] the current value of the [[enet.peer | peer]] is returned. Otherwise the the previous round trip time computation is set to the specified value and returned.

ENet performs some filtering on the round trip times and it takes some time until the parameters are accurate. To speed it up you can set the value of the last round trip time to a more accurate guess.
== Function ==
=== Synopsis ===
<source lang="lua">
peer:last_round_trip_time()
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|lastroundtriptime|The [[enet.peer | peer's]] last round trip time computation in milliseconds.}}
=== Synopsis ===
<source lang="lua">
peer:last_round_trip_time(value)
</source>
=== Arguments ===
{{param|number|value|Integer value to be used as the last round trip time.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::lua-enet]]
* [[enet.peer]]
* [[enet.peer:round_trip_time]]
== Other Languages ==
{{i18n|enet.peer:last_round_trip_time}}